@(f: Form[Search.TextEntry], descriptions: List[models.aaa.Asset] = null, size: Int = 0) 
@import helper._ 

@main("Search", null) {

<h1>Search</h1> 
<form action="/search" method="POST" class="form-horizontal">

	<div class="input-append">
		<input 	type="text" 
				name="@f("text").name" 
				id="@f("text").id" 
				value="@f("text").value" 
				placeHolder="search text"/>
		<input class="btn" type="submit">
	</div>
				
</form>
 
	 @if(descriptions.isEmpty()) {
	  	
	} else {
		About @size results
		<ul>
			@for(d <- descriptions) {
			<li><a href="/asset/@d.getId()">@d.getName()</a>
				<div>@if(d.getDescription() != null){
						@Html(d.getDescription(200))
					 }
			    </div>
			    <div>@if(d.getFilename()!=null){
			    		<a href="file://@d.getFilename()">@d.getFilename()</a>
			    	 }
			    </div>
			</li> 
			}
		</ul>
	}
}
